import request from '@/utils/request'

// 查询设备人脸库列表
export function listDeviceface(query) {
  return request({
    url: '/wisdom/deviceface/list',
    method: 'get',
    params: query
  })
}

// 查询设备人脸库详细
export function getDeviceface(id) {
  return request({
    url: '/wisdom/deviceface/' + id,
    method: 'get'
  })
}

// 新增设备人脸库
export function addDeviceface(data) {
  return request({
    url: '/wisdom/deviceface',
    method: 'post',
    data: data
  })
}

// 修改设备人脸库
export function updateDeviceface(data) {
  return request({
    url: '/wisdom/deviceface',
    method: 'put',
    data: data
  })
}

// 删除设备人脸库
export function delDeviceface(id) {
  return request({
    url: '/wisdom/deviceface/' + id,
    method: 'delete'
  })
}
